package ExtendPractise;

public class Mankind {
    private int sex;
    private int salary;

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public Mankind() {
    }

    public Mankind(int sex, int salary) {
        this.sex = sex;
        this.salary = salary;
    }
    public void manOrWomen(){
        if(sex==1){
            System.out.println("man");
        }else System.out.println("women");
    }
    public void employed(){
        if(salary==0){
            System.out.println("no job");
        }else System.out.println("have job");
    }
}
